package com.petdog.infrastructure.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.petdog.infrastructure.entity.HotSearch;
import org.apache.ibatis.annotations.Param;
import java.util.List;

public interface HotSearchMapper extends BaseMapper<HotSearch> {
    // 增加搜索次数
    void incrementSearchCount(@Param("keyword") String keyword);
    
    // 获取热门搜索词
    List<HotSearch> selectHotKeywords(@Param("limit") Integer limit);
    
    // 根据关键词前缀获取搜索建议
    List<String> selectSuggestionsByPrefix(@Param("prefix") String prefix, @Param("limit") Integer limit);
}